package com.aspose.cells;

class zmc {
   private static final com.aspose.cells.b.c.a.za a = new com.aspose.cells.b.c.a.za(new String[]{"=", "<", ">", "<>", "<=", ">="});

   static int a(double var0, double var2, String var4) {
      switch(a.a(var4)) {
      case 0:
         if (Math.abs(var0 - var2) < Double.MIN_VALUE) {
            return 1;
         }
         break;
      case 1:
         if (var0 < var2) {
            return 1;
         }
         break;
      case 2:
         if (var0 > var2) {
            return 1;
         }
         break;
      case 3:
         if (Math.abs(var0 - var2) > Double.MIN_VALUE) {
            return 1;
         }
         break;
      case 4:
         if (var0 >= var2 && Math.abs(var0 - var2) >= Double.MIN_VALUE) {
            break;
         }

         return 1;
      case 5:
         if (var0 > var2 || Math.abs(var0 - var2) < Double.MIN_VALUE) {
            return 1;
         }
      }

      return 0;
   }

   static int a(String var0, String var1, String var2) {
      switch(a.a(var2)) {
      case 0:
         if (com.aspose.cells.b.a.zv.a(var1, new char[]{'*', '?'}) != -1 && zbpt.a(var1, var0, true) == 0) {
            return 1;
         }

         if (com.aspose.cells.b.a.zv.a(var0, var1, true) == 0) {
            return 1;
         }
         break;
      case 1:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) < 0) {
            return 1;
         }
         break;
      case 2:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) > 0) {
            return 1;
         }
         break;
      case 3:
         if (com.aspose.cells.b.a.zv.a(var1, new char[]{'*', '?'}) != -1) {
            if (zbpt.a(var1, var0, true) == 0) {
               return 0;
            }

            return 1;
         }

         if (com.aspose.cells.b.a.zv.a(var0, var1, true) != 0) {
            return 1;
         }
         break;
      case 4:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) <= 0) {
            return 1;
         }
         break;
      case 5:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) >= 0) {
            return 1;
         }
      }

      return 0;
   }

   static int a(String var0, String var1, String var2, boolean var3) {
      switch(a.a(var2)) {
      case 0:
         if (var3 && com.aspose.cells.b.a.zv.a(var1, new char[]{'*', '?'}) != -1 && zbpt.a(var1, var0, true) == 0) {
            return 1;
         }

         if (com.aspose.cells.b.a.zv.a(var0, var1, true) == 0) {
            return 1;
         }
         break;
      case 1:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) < 0) {
            return 1;
         }
         break;
      case 2:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) > 0) {
            return 1;
         }
         break;
      case 3:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) != 0) {
            return 1;
         }
         break;
      case 4:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) <= 0) {
            return 1;
         }
         break;
      case 5:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) >= 0) {
            return 1;
         }
      }

      return 0;
   }

   static int b(String var0, String var1, String var2) {
      var0 = var0.trim();
      switch(a.a(var2)) {
      case 0:
         if (com.aspose.cells.b.a.zv.a(var1, new char[]{'*', '?'}) != -1 && zbpt.a(var1, var0, true) == 0) {
            return 1;
         }

         if (com.aspose.cells.b.a.zv.a(var0, var1, true) == 0) {
            return 1;
         }
         break;
      case 1:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) < 0) {
            return 1;
         }
         break;
      case 2:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) > 0) {
            return 1;
         }
         break;
      case 3:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) != 0) {
            return 1;
         }
         break;
      case 4:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) <= 0) {
            return 1;
         }
         break;
      case 5:
         if (com.aspose.cells.b.a.zv.a(var0, var1, true) >= 0) {
            return 1;
         }
      }

      return 0;
   }

   static double a(Object var0, boolean var1) {
      if (var0 == null) {
         return 0.0D;
      } else if (var0 instanceof zst) {
         return 1.0D;
      } else {
         switch(zamo.a(var0.getClass())) {
         case 3:
            if ((Boolean)var0) {
               return 1.0D;
            }

            return 0.0D;
         case 9:
            return (double)(Integer)var0;
         case 14:
            return (Double)var0;
         case 16:
            return CellsHelper.getDoubleFromDateTime((DateTime)var0, var1);
         case 18:
            String var2 = (String)var0;
            if ("".equals(var2)) {
               return 0.0D;
            }

            return 1.0D;
         default:
            return 1.0D;
         }
      }
   }

   static double a(double var0, double var2) {
      if (Math.abs(var0 - var2) < Double.MIN_VALUE) {
         return 0.0D;
      } else {
         return var0 > var2 ? 1.0D : -1.0D;
      }
   }

   static Object a(Object var0, Object var1, boolean var2, boolean var3) {
      if (var0 != null && var0 instanceof zst) {
         return var0;
      } else if (var1 != null && var1 instanceof zst) {
         return var1;
      } else {
         double var4;
         double var6;
         if (var0 != null && var1 != null) {
            switch(zamo.a(var0.getClass())) {
            case 3:
               switch(zamo.a(var1.getClass())) {
               case 3:
                  var4 = (Boolean)var0 ? 1.0D : 0.0D;
                  var6 = (Boolean)var1 ? 1.0D : 0.0D;
                  return a(var4, var6);
               case 14:
               case 16:
               case 18:
                  return 1.0D;
               default:
                  return 1.0D;
               }
            case 14:
               switch(zamo.a(var1.getClass())) {
               case 14:
                  var4 = (Double)var0;
                  var6 = (Double)var1;
                  return a(var4, var6);
               case 15:
               case 17:
               default:
                  return -1.0D;
               case 16:
                  var4 = (Double)var0;
                  var6 = CellsHelper.getDoubleFromDateTime((DateTime)var1, var2);
                  return a(var4, var6);
               case 18:
                  return -1.0D;
               }
            case 16:
               switch(zamo.a(var1.getClass())) {
               case 14:
                  var4 = CellsHelper.getDoubleFromDateTime((DateTime)var0, var2);
                  return a(var4, (Double)var1);
               case 15:
               case 17:
               default:
                  return -1.0D;
               case 16:
                  var4 = CellsHelper.getDoubleFromDateTime((DateTime)var0, var2);
                  var6 = CellsHelper.getDoubleFromDateTime((DateTime)var1, var2);
                  return a(var4, var6);
               case 18:
                  return -1.0D;
               }
            case 18:
               switch(zamo.a(var1.getClass())) {
               case 3:
                  return -1.0D;
               case 14:
               case 16:
                  return 1.0D;
               default:
                  if (var3) {
                     return (double)com.aspose.cells.b.a.zr.a(var0).toUpperCase().compareTo(com.aspose.cells.b.a.zr.a(var1).toUpperCase());
                  }

                  return (double)com.aspose.cells.b.a.zr.a(var0).compareTo(com.aspose.cells.b.a.zr.a(var1));
               }
            default:
               return var3 ? (double)com.aspose.cells.b.a.zr.a(var0).toUpperCase().compareTo(com.aspose.cells.b.a.zr.a(var1).toUpperCase()) : (double)com.aspose.cells.b.a.zr.a(var0).compareTo(com.aspose.cells.b.a.zr.a(var1));
            }
         } else {
            var4 = a(var0, var2);
            var6 = a(var1, var2);
            if (var4 == var6) {
               return 0.0D;
            } else {
               return var4 > var6 ? 1.0D : -1.0D;
            }
         }
      }
   }

   static Object a(Object var0, Object var1, String var2, boolean var3, boolean var4) {
      if (var0 != null && var0 instanceof zst) {
         return var0;
      } else if (var1 != null && var1 instanceof zst) {
         return var1;
      } else if (var0 != null && var1 != null) {
         double var8;
         String var12;
         int var16;
         switch(zamo.a(var0.getClass())) {
         case 9:
            double var10 = (double)(Integer)var0;
            switch(zamo.a(var1.getClass())) {
            case 9:
               double var17 = (double)(Integer)var1;
               return b(var10, var17, var2);
            case 10:
            case 11:
            case 12:
            case 13:
            case 15:
            case 17:
            default:
               var16 = a(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2, var4);
               if (var16 == 1) {
                  return true;
               }

               return false;
            case 14:
               return b(var10, (Double)var1, var2);
            case 16:
               var8 = CellsHelper.getDoubleFromDateTime((DateTime)var1, var3);
               return b(var10, var8, var2);
            case 18:
               String var18 = (String)var1;
               switch(a.a(var2)) {
               case 0:
               case 2:
               case 5:
                  return false;
               case 1:
               case 3:
               case 4:
                  return true;
               default:
                  var16 = a(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2, var4);
                  if (var16 == 1) {
                     return true;
                  }

                  return false;
               }
            }
         case 10:
         case 11:
         case 12:
         case 13:
         case 15:
         case 17:
         default:
            var16 = a(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2, var4);
            if (var16 == 1) {
               return true;
            }

            return false;
         case 14:
            switch(zamo.a(var1.getClass())) {
            case 14:
               return b((Double)var0, (Double)var1, var2);
            case 15:
            case 17:
            default:
               var16 = a(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2, var4);
               if (var16 == 1) {
                  return true;
               }

               return false;
            case 16:
               var8 = CellsHelper.getDoubleFromDateTime((DateTime)var1, var3);
               return b((Double)var0, var8, var2);
            case 18:
               var12 = (String)var1;
               switch(a.a(var2)) {
               case 0:
               case 2:
               case 5:
                  return false;
               case 1:
               case 3:
               case 4:
                  return true;
               default:
                  var16 = a(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2, var4);
                  if (var16 == 1) {
                     return true;
                  }

                  return false;
               }
            }
         case 16:
            double var6;
            switch(zamo.a(var1.getClass())) {
            case 14:
               var6 = CellsHelper.getDoubleFromDateTime((DateTime)var0, var3);
               return b(var6, (Double)var1, var2);
            case 15:
            case 17:
            default:
               var16 = a(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2, var4);
               if (var16 == 1) {
                  return true;
               }

               return false;
            case 16:
               var6 = CellsHelper.getDoubleFromDateTime((DateTime)var0, var3);
               var8 = CellsHelper.getDoubleFromDateTime((DateTime)var1, var3);
               return b(var6, var8, var2);
            case 18:
               var12 = (String)var1;
               var1 = zyn.e(var12, var3);
               if (var1 instanceof Double) {
                  var6 = CellsHelper.getDoubleFromDateTime((DateTime)var0, var3);
                  return b(var6, (Double)var1, var2);
               } else {
                  var16 = a(com.aspose.cells.b.a.zr.a(var0), var12, var2, var4);
                  if (var16 == 1) {
                     return true;
                  }

                  return false;
               }
            }
         case 18:
            switch(zamo.a(var1.getClass())) {
            case 3:
               switch(a.a(var2)) {
               case 0:
               case 2:
               case 5:
                  return false;
               case 1:
               case 4:
                  return true;
               case 3:
                  return true;
               default:
                  var16 = a((String)var0, com.aspose.cells.b.a.zr.a(var1), var2, var4);
                  if (var16 == 1) {
                     return true;
                  }

                  return false;
               }
            case 14:
            case 16:
               switch(a.a(var2)) {
               case 0:
               case 1:
               case 4:
                  return false;
               case 2:
               case 3:
               case 5:
                  return true;
               default:
                  var16 = a((String)var0, com.aspose.cells.b.a.zr.a(var1), var2, var4);
                  if (var16 == 1) {
                     return true;
                  }

                  return false;
               }
            default:
               var12 = (String)var0;
               String var13 = com.aspose.cells.b.a.zr.a(var1);
               if (var13.length() == 0) {
                  double var14 = var12.length() == 0 ? 0.0D : 1.0D;
                  var16 = a(var14, 0.0D, var2);
               } else {
                  var16 = a(var12, var13, var2, var4);
               }

               return var16 == 1 ? true : false;
            }
         }
      } else {
         double var5 = a(var0, var3);
         double var7 = a(var1, var3);
         switch(a.a(var2)) {
         case 0:
            return var5 == var7;
         case 1:
            return var5 < var7;
         case 2:
            return var5 > var7;
         case 3:
            return var5 != var7;
         case 4:
            return var5 <= var7;
         case 5:
            return var5 >= var7;
         default:
            return false;
         }
      }
   }

   static Object a(Object var0, Object var1, String var2, boolean var3) {
      return a(var0, var1, var2, var3, false);
   }

   static Object b(Object var0, Object var1, String var2, boolean var3) {
      if (var0 != null && var0 instanceof zst) {
         var0 = zsk.a((zst)var0);
      }

      if (var1 != null && var1 instanceof zst) {
         var1 = zsk.a((zst)var1);
      }

      if (var0 != null && var1 != null) {
         double var7;
         int var13;
         String var14;
         switch(zamo.a(var0.getClass())) {
         case 14:
            switch(zamo.a(var1.getClass())) {
            case 14:
               return b((Double)var0, (Double)var1, var2);
            case 15:
            case 17:
            default:
               var13 = b(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2);
               if (var13 == 1) {
                  return true;
               }

               return false;
            case 16:
               var7 = CellsHelper.getDoubleFromDateTime((DateTime)var1, var3);
               return b((Double)var0, var7, var2);
            case 18:
               var14 = (String)var1;
               switch(a.a(var2)) {
               case 0:
               case 2:
               case 5:
                  return false;
               case 1:
               case 3:
               case 4:
                  return true;
               default:
                  var13 = b(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2);
                  if (var13 == 1) {
                     return true;
                  }

                  return false;
               }
            }
         case 15:
         case 17:
         default:
            var13 = b(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2);
            if (var13 == 1) {
               return true;
            }

            return false;
         case 16:
            double var5;
            switch(zamo.a(var1.getClass())) {
            case 14:
               var5 = CellsHelper.getDoubleFromDateTime((DateTime)var0, var3);
               return b(var5, (Double)var1, var2);
            case 15:
            case 17:
            default:
               var13 = b(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2);
               if (var13 == 1) {
                  return true;
               }

               return false;
            case 16:
               var5 = CellsHelper.getDoubleFromDateTime((DateTime)var0, var3);
               var7 = CellsHelper.getDoubleFromDateTime((DateTime)var1, var3);
               return b(var5, var7, var2);
            case 18:
               var14 = (String)var1;
               var1 = zyn.e(var14, var3);
               if (var1 instanceof Double) {
                  var5 = CellsHelper.getDoubleFromDateTime((DateTime)var0, var3);
                  return b(var5, (Double)var1, var2);
               } else {
                  var13 = b(com.aspose.cells.b.a.zr.a(var0), var14, var2);
                  if (var13 == 1) {
                     return true;
                  }

                  return false;
               }
            }
         case 18:
            switch(zamo.a(var1.getClass())) {
            case 3:
               switch(a.a(var2)) {
               case 0:
               case 2:
               case 5:
                  return false;
               case 1:
               case 4:
                  return true;
               case 3:
                  return true;
               default:
                  var13 = b((String)var0, com.aspose.cells.b.a.zr.a(var1), var2);
                  if (var13 == 1) {
                     return true;
                  }

                  return false;
               }
            case 14:
            case 16:
               switch(a.a(var2)) {
               case 0:
                  Object var9 = zyn.e(var0, var3);
                  if (var9 instanceof Double) {
                     var1 = zyn.e(var1, var3);
                     return (Double)var9 == (Double)var1;
                  }

                  return com.aspose.cells.b.a.zv.b((String)var0, com.aspose.cells.b.a.zr.a(var1));
               case 1:
               case 4:
                  return false;
               case 2:
               case 3:
               case 5:
                  return true;
               default:
                  var13 = b((String)var0, com.aspose.cells.b.a.zr.a(var1), var2);
                  if (var13 == 1) {
                     return true;
                  }

                  return false;
               }
            default:
               var14 = (String)var0;
               String var10 = com.aspose.cells.b.a.zr.a(var1);
               if (var10.length() == 0) {
                  double var11 = var14.length() == 0 ? 0.0D : 1.0D;
                  var13 = a(var11, 0.0D, var2);
               } else {
                  var13 = b(var14, var10, var2);
               }

               return var13 == 1 ? true : false;
            }
         }
      } else {
         double var4 = a(var0, var3);
         double var6 = a(var1, var3);
         switch(a.a(var2)) {
         case 0:
            return var4 == var6;
         case 1:
            return var4 < var6;
         case 2:
            return var4 > var6;
         case 3:
            return var4 != var6;
         case 4:
            return var4 <= var6;
         case 5:
            return var4 >= var6;
         default:
            return false;
         }
      }
   }

   static Object a(Object var0, zyl var1, WorkbookSettings var2) {
      return a(var0, var1.b, var1.a(), var2, var1.c);
   }

   static Object a(Object var0, Object var1, String var2, WorkbookSettings var3, Object var4) {
      if (var0 instanceof zst && var1 instanceof zst) {
         switch(a.a(var2)) {
         case 0:
         case 4:
         case 5:
            return (zst)var0 == (zst)var1;
         }
      }

      if (var0 != null && var0 instanceof zst) {
         return var0;
      } else if (var1 != null && var1 instanceof zst) {
         return var1;
      } else if (var0 != null && var1 != null) {
         double var6;
         double var8;
         String var10;
         int var14;
         switch(zamo.a(var0.getClass())) {
         case 14:
            switch(zamo.a(var4.getClass())) {
            case 14:
               return b((Double)var0, (Double)var4, var2);
            case 15:
            case 17:
            default:
               var14 = a(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var4), var2);
               if (var14 == 1) {
                  return true;
               }

               return false;
            case 16:
               var8 = CellsHelper.getDoubleFromDateTime((DateTime)var4, var3.getDate1904());
               return b((Double)var0, var8, var2);
            case 18:
               var10 = (String)var4;
               switch(a.a(var2)) {
               case 3:
                  return true;
               default:
                  return false;
               }
            }
         case 15:
         case 17:
         default:
            var14 = a(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2);
            if (var14 == 1) {
               return true;
            }

            return false;
         case 16:
            switch(zamo.a(var1.getClass())) {
            case 14:
               var6 = CellsHelper.getDoubleFromDateTime((DateTime)var0, var3.getDate1904());
               return b(var6, (Double)var1, var2);
            case 15:
            case 17:
            default:
               var14 = a(com.aspose.cells.b.a.zr.a(var0), com.aspose.cells.b.a.zr.a(var1), var2);
               if (var14 == 1) {
                  return true;
               }

               return false;
            case 16:
               var6 = CellsHelper.getDoubleFromDateTime((DateTime)var0, var3.getDate1904());
               var8 = CellsHelper.getDoubleFromDateTime((DateTime)var1, var3.getDate1904());
               return b(var6, var8, var2);
            case 18:
               var10 = (String)var1;
               var1 = zyn.a((Object)var10, (WorkbookSettings)var3);
               if (var1 instanceof Double) {
                  var6 = CellsHelper.getDoubleFromDateTime((DateTime)var0, var3.getDate1904());
                  return b(var6, (Double)var1, var2);
               } else {
                  var14 = a(com.aspose.cells.b.a.zr.a(var0), var10, var2);
                  if (var14 == 1) {
                     return true;
                  }

                  return false;
               }
            }
         case 18:
            switch(zamo.a(var1.getClass())) {
            case 3:
               switch(a.a(var2)) {
               case 0:
               case 2:
               case 5:
                  return false;
               case 1:
               case 4:
                  return true;
               case 3:
                  return true;
               default:
                  var14 = a((String)var0, com.aspose.cells.b.a.zr.a(var1), var2);
                  if (var14 == 1) {
                     return true;
                  }

                  return false;
               }
            case 14:
            case 16:
               switch(a.a(var2)) {
               case 0:
                  var0 = zyn.a(var0, var3);
                  if (var0 instanceof Double) {
                     var6 = (Double)var0;
                     var8 = (Double)zyn.a(var1, var3);
                     return zbc.a(var6, var8);
                  }

                  return false;
               case 1:
               case 4:
                  return false;
               case 2:
               case 5:
                  return false;
               case 3:
                  return true;
               default:
                  var14 = a((String)var0, com.aspose.cells.b.a.zr.a(var1), var2);
                  if (var14 == 1) {
                     return true;
                  }

                  return false;
               }
            default:
               var10 = (String)var0;
               String var11 = com.aspose.cells.b.a.zr.a(var1);
               if (var11.length() == 0) {
                  double var12 = var10.length() == 0 ? 0.0D : 1.0D;
                  var14 = a(var12, 0.0D, var2);
               } else {
                  var14 = a(var10, var11, var2);
               }

               return var14 == 1 ? true : false;
            }
         }
      } else if (var0 == null && var1 != null) {
         switch(a.a(var2)) {
         case 0:
            if (var1 instanceof String && "".equals((String)var1)) {
               return true;
            }

            return false;
         case 3:
            return true;
         default:
            return false;
         }
      } else if (var0 != null && var1 == null) {
         switch(a.a(var2)) {
         case 3:
            return true;
         default:
            return false;
         }
      } else {
         if (var0 == null && var1 == null) {
            switch(a.a(var2)) {
            case 0:
               return false;
            }
         }

         double var5 = a(var0, var3.getDate1904());
         double var7 = a(var1, var3.getDate1904());
         switch(a.a(var2)) {
         case 0:
            if (var0 == null && var1 != null && !"".equals(com.aspose.cells.b.a.zr.a(var1)) && var7 == 0.0D) {
               return false;
            }

            return var5 == var7;
         case 1:
            return var5 < var7;
         case 2:
            return var5 > var7;
         case 3:
            return var5 != var7;
         case 4:
            return var5 <= var7;
         case 5:
            return var5 >= var7;
         default:
            return false;
         }
      }
   }

   static boolean b(double var0, double var2, String var4) {
      switch(a.a(var4)) {
      case 0:
         if (zbc.a(var0, var2)) {
            return true;
         } else {
            if (Math.abs(var0 - var2) <= 1.0E-16D) {
               return true;
            }

            return false;
         }
      case 1:
         if (zbc.a(var0, var2)) {
            return false;
         } else {
            if (var0 < var2) {
               return true;
            }

            return false;
         }
      case 2:
         if (zbc.a(var0, var2)) {
            return false;
         } else {
            if (var0 > var2) {
               return true;
            }

            return false;
         }
      case 3:
         if (zbc.a(var0, var2)) {
            return false;
         } else {
            if (Math.abs(var0 - var2) <= 1.0E-16D) {
               return false;
            }

            return true;
         }
      case 4:
         if (zbc.a(var0, var2)) {
            return true;
         } else {
            if (var0 >= var2 && Math.abs(var0 - var2) > 1.0E-16D) {
               return false;
            }

            return true;
         }
      case 5:
         if (var0 <= var2 && Math.abs(var0 - var2) > 1.0E-16D) {
            return false;
         }

         return true;
      default:
         return false;
      }
   }

   static Object[] a(String var0, WorkbookSettings var1) {
      Object[] var2 = new Object[]{"=", var0};
      if (var0 != null && var0.length() >= 1) {
         label63:
         switch(var0.charAt(0)) {
         case '<':
            if (var0.length() > 1) {
               switch(var0.charAt(1)) {
               case '=':
                  var2[0] = "<=";
                  var2[1] = var0.substring(2);
                  break label63;
               case '>':
                  var2[0] = "<>";
                  var2[1] = var0.substring(2);
                  break label63;
               default:
                  var2[0] = "<";
                  var2[1] = var0.substring(1);
               }
            } else {
               var2[0] = "<";
               var2[1] = var0.substring(1);
            }
            break;
         case '=':
            var2[0] = "=";
            var2[1] = var0.substring(1);
            break;
         case '>':
            if (var0.length() > 1) {
               switch(var0.charAt(1)) {
               case '=':
                  var2[0] = ">=";
                  var2[1] = var0.substring(2);
                  break label63;
               default:
                  var2[0] = ">";
                  var2[1] = var0.substring(1);
               }
            } else {
               var2[0] = ">";
               var2[1] = var0.substring(1);
            }
            break;
         default:
            var2[0] = "=";
            var2[1] = var0;
         }

         if (var2[1] != null) {
            String var3 = (String)var2[1];
            if ("".equals(var3)) {
               var2[1] = null;
               return var2;
            }

            if (var1 == null) {
               boolean var4 = false;
               if (var3.charAt(var3.length() - 1) == '%') {
                  var4 = true;
                  var3 = var3.substring(0, 0 + (var3.length() - 1));
               }

               Object var5 = zakq.h(var3);
               if (var5 != null) {
                  if (var4) {
                     var5 = zyn.e(var5, false);
                     if (var5 instanceof zst) {
                        return var2;
                     }

                     var2[1] = (Double)var5 / 100.0D;
                  } else {
                     var2[1] = var5;
                  }
               } else if (zapb.a(var3)) {
                  try {
                     var2[1] = DateTime.a(var3);
                  } catch (Exception var7) {
                     ;
                  }
               }
            } else {
               Object var8 = zyn.a((Object)var3, (WorkbookSettings)var1);
               if (var8 != null && var8 instanceof Double) {
                  var2[1] = var8;
               }
            }
         }

         return var2;
      } else {
         return var2;
      }
   }
}
